# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-libqcow-python
_pkgname=libqcow
__pkgname=libqcow-python
pkgver=20240308
pkgrel=3
pkgdesc='Library and tools to access the QEMU Copy-On-Write (QCOW) image format.'
url='https://github.com/libyal/libqcow'
arch=('x86_64' 'aarch64')
license=('LGPL3')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$__pkgname/$__pkgname-$pkgver.tar.gz")
sha512sums=('f847df536b7726b45748de80662b07ba27740ffa469d651001dba256ca9c67232abbaf7ceda4ed99b1c33c840b72030156a399ec6f7cc4842f7c59d12f744ae8')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

